package org.jeecg.modules.demo.pusettlement.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.puInvoice.entity.InvoiceOrder;
import org.jeecg.modules.demo.pusettlement.entity.PuSettlementVo;
import org.jeecg.modules.demo.pusettlement.entity.PuSettlement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @Description: 采购结算
 * @Author: jeecg-boot
 * @Date:   2021-12-06
 * @Version: V1.0
 */
public interface PuSettlementMapper extends BaseMapper<PuSettlement> {
    public String getMaxCode();
    public List<String> selectByRkOrder(@Param("number") String number);
    public List<PuSettlementVo> getList(Page<PuSettlementVo> page, @Param("puSettlement")PuSettlement puSettlement);
    public InvoiceOrder getInvoiceOrderByOrder(@Param("str") String str);

    public PuSettlement getByPusNo(@Param("str") String str);

    public List<PuSettlement> getByPoOrder(@Param("str") String str);

    public List<PuSettlement> getYjByOrder(@Param("str") String str,Page<PuSettlement> page);

    public Double getSumTotail(@Param("str") String str);

    public Double getRealTotail(@Param("str") String str);

    public Double getTotailByNumber(@Param("puSettlement") PuSettlement puSettlement);

     public List<PuSettlement> queryCaigouqushi();
    public Map<String,Double> getYkTotailByOrder(@Param("str") String str);

    public List<PuSettlement> getWriteOffDetails(@Param("puSettlement") PuSettlement puSettlement);
}
